package com.hmall.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service")
public interface UserClient {

    /**
     * 扣减余额
     */
    @PutMapping("/users/money/deduct")
    void deductMoney(@RequestParam("pw")String pw,@RequestParam("amount")Integer amount);
}
